]> dgit.raspbian.org Git - gnome-shell.git/commit
volume: Ignore slider changes we initiated ourselves
authorIain Lane <iainl@gnome.org>
Thu, 5 Sep 2019 09:45:37 +0000 (10:45 +0100)
committerIain Lane <iainl@gnome.org>
Thu, 5 Sep 2019 10:30:33 +0000 (11:30 +0100)
commite6dec7a9ddd0f86f074207bd27dcac526fa97aea
treeb70812e8e248eeba444a1bf0e351ae6243b5e89b
parent8adfc5b106d373bdae83b9a7b32e995f2a0d8331
volume: Ignore slider changes we initiated ourselves

Commit 21e14bd46f9774e6c0146cb2169d938e782dba3c fixed this for the
brightness slider, but we have the same problem for volume too. When the
volume is muted - for example in Settings or via a media key, we update
the slider to '0' to indicate this visually. But we also actually invoke
the slider's callback to *set* the volume to zero. That means that the
previous level is overwritten so it can't be restored when unmuting.

The fix is the same - when we update the slider internally ourselves,
don't call the signal handler.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1557
js/ui/status/volume.js